package com.wangchao.administrator.zenmechi.ui.fragment.caipufragment;

import com.wangchao.administrator.zenmechi.bean.caipubean.CaipuItem;
import com.wangchao.administrator.zenmechi.http.HttpHelper;

import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2016/10/17.
 */
public class CaipuModel implements CaipuContract.Model {


    @Override
    public void getItems(Subscriber<CaipuItem> subscriber) {
        HttpHelper.getInstance().getItems()
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }
}
